package com.ciaojian.bytedance.controller;

import com.alibaba.fastjson.JSONObject;
import com.ciaojian.bytedance.service.ByteDanceGoodsService;
import com.ciaojian.bytedance.service.FinanceService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import jdk.nashorn.internal.objects.annotations.Getter;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@ApiModel("抖音财务系统接口")
@Slf4j
@RestController
@RequestMapping("/finance")
public class FinanceController {


    @Autowired
    private FinanceService financeService;

    /**
     * 查看商户余额
     */
    @ApiOperation("查看商户余额")
    @GetMapping("/query_merchant_balance")
    public JSONObject query_merchant_balance(@RequestParam @ApiParam("1支付宝 2微信 3抖音 4担保支付企业版聚合账户") Integer channelType) throws Exception {
        return financeService.query_merchant_balance(channelType);

    }
}
